Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /


Chapter 15 - Printer Access Protocol (PAP)

This chapter describes how Open Transport implements the Printer Access Protocol (PAP). It explains how you can use PAP to set up a printer server endpoint that awaits connection requests from active PAP endpoints. The chapter also explains how to set up an active PAP client endpoint, how to send data directly from it to the printer server, and how the client endpoint receives messages back from the server. PAP offers a connection-oriented transactionless service that is particularly well suited to creating both the client and the server side of a client-server pair of endpoints.

You should read this chapter if you want to write an application that uses PAP to print directly to AppleTalk printers. This chapter explains how you

This chapter begins with a description of PAP and the services that it provides under Open Transport. The section "Using Open Transport Functions With PAP" then gives detailed information about how PAP client applications use the endpoint functions that Open Transport provides for connection-oriented transactionless protocols. For a more detailed explanation of endpoints and their functions, read the chapter "Endpoints" in this book.

For an overview of PAP and how it fits within the AppleTalk protocol stack, read the chapter "Introduction to AppleTalk" in this book, which also introduces and defines some of the terminology used in this chapter. PAP under Open Transport conforms to the detailed specifications in Inside AppleTalk, second edition. See that book for further information about the features mentioned here.


Chapter Contents
About PAP
Using PAP
Binding PAP Endpoints
Specifying PAP Options
The Enable End-of-Message Option
The Open Retry Option
The Server Status Option
Disconnecting
Using General Open Transport Functions With PAP
OTBind
OTConnect
OTRcvConnect
OTListen
OTAccept
OTSnd
OTRcv
OTSndDisconnect
OTRcvDisconnect
PAP Reference
Options

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996